package com.glp.work.flow.service;

import com.glp.work.flow.pojo.WfBatchOrder;
import com.glp.work.flow.request.BatchOrder;
import com.glp.work.flow.request.OrderBatchApprovalDTO;

import java.util.List;

/**
 * @author : 郭永伟
 * @date : 2020/09/08/18:23
 * @description :批次号
 */

public interface WfBatchService {
    /**
     * @description : 生成批次号
     * @params : [orderBatchApprovalDTO]
     * @returns : java.lang.String
     * @author : 郭永伟
     * @date : 2020/9/8
    */
    String addWfBatch(OrderBatchApprovalDTO orderBatchApprovalDTO);

    /**
     * @description : 查询批量审批
     * @params : [processesIds]
     * @returns : com.glp.common.reponse.BaseResult<com.glp.work.flow.request.BatchOrderRequest>
     * @author : 郭永伟
     * @date : 2020/9/9
    */
    BatchOrder getBatchOrder(List<String> processesIds,String userNo);

    /**
     * @description : 根据任务id查询批量工单
     * @params : [taskId]
     * @returns : com.glp.work.flow.pojo.WfBatchOrder
     * @author : 郭永伟
     * @date : 2020/9/23
    */
    WfBatchOrder getWfBatchOrder(String taskId);
}
